CFLAGS		+=	-Wall -O3 -lbz2 -lz

PREFIX		?=	/usr/local
INSTALL		?= 	install
INSTALL_PROGRAM	?=	${INSTALL} -c -s -m 555
INSTALL_MAN	?=	${INSTALL} -c -m 444

all:		binzdiff binzpatch
bzdiff:		binzdiff.c
bzpatch:	binzpatch.c

install:
	${INSTALL_PROGRAM} binzdiff binzpatch ${PREFIX}/bin
	${INSTALL_MAN} binzdiff.1 binzpatch.1 ${PREFIX}/man/man1
